import { getBannerListAPI } from "@/apis/category";
import { onMounted, ref } from 'vue';


export function userBanner(){
  const bannerList = ref([]);
  const getBannerList = async () => {
    const res = await getBannerListAPI({ distributionSite: "2" });
    bannerList.value = res.result;
  };

  onMounted(()=>{
    getBannerList()
  })
  return {bannerList}
};
